import service from "../utils/request";
//列表
export function decrement_list(payload={}){
    return service.get('/decrement',{params:payload})
}
//添加
export function decrement_add(payload={}){
    return service.post('/decrement',payload)
}
//删除
export function decrement_del(payload={}){
    return service.delete('/decrement/'+payload.id,payload)
}
//停用
export function decrement_xiu(payload={}){
    return service.patch('/decrement/'+payload.id,payload)
}
//查询单个商品
export function decrement_info( payload = {} ){
    return service.get('/decrement/'+payload.id, { params: payload  } );
}
//查询
export function decrement_list4( payload = {} ){
    return service.get('/decrement', { params: payload  } );
}
//编辑
export function decrement_list2( payload = {} ){
    return service.put('/decrement/'+payload.id,payload);
}


//商品列表
export function goods_list(payload={}){
    return service.get('/goods',{params:payload})
}
//添加列表
export function shoulist_list(payload={}){
    return service.get('/shoulist',{params:payload})
}
//商品添加
export function goods_add(payload={}){
    return service.post('/goods',payload)
}
//商品删除
export function goods_del(payload={}){
    return service.delete('/goods/'+payload.id,payload)
}